package com.atqh.srrt.chicken.controller.VideoController;

import com.atqh.srrt.chicken.Aop.LogAnnotation;
import com.atqh.srrt.chicken.Vo.params.LoginParam;
import com.atqh.srrt.chicken.mapper.VideosMapper;
import com.atqh.srrt.chicken.utils.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @作者：大叔azhe
 * @api：详细描述
 * @创建时间：21:42 2024/4/7
 */
@RestController
@RequestMapping("/videoes")
public class VideoController {

    @Autowired
    private VideosMapper videosMapper;

    @RequestMapping("/list")
    @LogAnnotation(module = "视频模块",operator = "视频列表")
    public Result getVideoes(){

        //登陆验证用户 访问用户表
        return Result.success(videosMapper.selectList(null));

    }

}
